<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var name = "ml";
        var array = ["zs", "ls", "mh", "ml"];
        // console.log(array[0]);
        // console.log(array.length);
        for (var i = 0; i < array.length; i++) {
            // console.log(array[i])
        }
        for (var i = array.length - 1; i > 0; i--) {
            // console.log(array[i])
        }

        // 1-100之间能被3整除的数字，存到数组中
        var array = [];
        for(var i = 1;i <=100; i++){
            if(i%3 === 0){
                array[array.length] = i;
            }
        }
        // console.log(array)
        // console.log(array.length);
        array.length = 1;
        console.log(array);
    </script>
</body>

</html>
